/* Lac Viet ERP                                                
 * Copyright (c) 2013 Lac Viet                                 
 * http://www.lacviet.com.vn                                   
 *=============================================================
 * File name            : SR_tblSalesOrdersLines.cs         
 * Created by           : Auto - 04/23/2014 15:03:45                     
 * Last modify          : Auto - 04/23/2014 15:03:45                     
 * Version              : 1.0                                  
 * ============================================================
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace LineOfBusiness.Poco
{
	[Serializable]
	public partial class SR_tblSalesOrdersLines : BaseEntity
	{
		public SR_tblSalesOrdersLines()
		{
            this.Quantity = 0;
            this.CostPrice = 0;
            this.CostAmount = 0;
            this.SalesPrice = 0;
            this.NetAmt = 0;
		}

	    #region Properties

		private Guid _RecordID;

        [Key]
		[Required]
        public Guid RecordID 
		{ 
			get
			{
                return _RecordID;
			}
			set 
			{ 
                _RecordID = value;
			} 
		}

		private string _ItemID;
		[Required]
        [MaxLength(20)]
        public string ItemID 
		{ 
			get
			{
                return _ItemID;
			}
			set 
			{ 
                _ItemID = value;
			} 
		}

		private string _Color;
        [MaxLength(20)]
        public string Color 
		{ 
			get
			{
                return _Color;
			}
			set 
			{ 
                _Color = value;
			} 
		}

		private string _Size;
        [MaxLength(20)]
        public string Size 
		{ 
			get
			{
                return _Size;
			}
			set 
			{ 
                _Size = value;
			} 
		}

		private decimal _Quantity;
		[Required]
        public decimal Quantity 
		{ 
			get
			{
                return _Quantity;
			}
			set 
			{ 
                _Quantity = value;
			} 
		}

		private string _UMID;
        [MaxLength(20)]
        public string UMID 
		{ 
			get
			{
                return _UMID;
			}
			set 
			{ 
                _UMID = value;
			} 
		}

		private decimal _CostPrice;
		[Required]
        public decimal CostPrice 
		{ 
			get
			{
                return _CostPrice;
			}
			set 
			{ 
                _CostPrice = value;
			} 
		}

		private decimal _CostAmount;
		[Required]
        public decimal CostAmount 
		{ 
			get
			{
                return _CostAmount;
			}
			set 
			{ 
                _CostAmount = value;
			} 
		}

		private decimal _SalesPrice;
		[Required]
        public decimal SalesPrice 
		{ 
			get
			{
                return _SalesPrice;
			}
			set 
			{ 
                _SalesPrice = value;
			} 
		}

		private decimal _NetAmt;
		[Required]
        public decimal NetAmt 
		{ 
			get
			{
                return _NetAmt;
			}
			set 
			{ 
                _NetAmt = value;
			} 
		}

		private string _ItemType;
		[Required]
        [MaxLength(1)]
        public string ItemType 
		{ 
			get
			{
                return _ItemType;
			}
			set 
			{ 
                _ItemType = value;
			} 
		}

		private DateTime? _DeadLines;
        public DateTime? DeadLines 
		{ 
			get
			{
                return _DeadLines;
			}
			set 
			{ 
                _DeadLines = value;
			} 
		}

		private string _GoldAgeID;
        [MaxLength(20)]
        public string GoldAgeID 
		{ 
			get
			{
                return _GoldAgeID;
			}
			set 
			{ 
                _GoldAgeID = value;
			} 
		}

		private string _SONo;
        [MaxLength(20)]
        public string SONo 
		{ 
			get
			{
                return _SONo;
			}
			set 
			{ 
                _SONo = value;
			} 
		}

		private DateTime? _CreatedDate;
        public DateTime? CreatedDate 
		{ 
			get
			{
                return _CreatedDate;
			}
			set 
			{ 
                _CreatedDate = value;
			} 
		}

		private string _Note;
        [MaxLength(200)]
        public string Note 
		{ 
			get
			{
                return _Note;
			}
			set 
			{ 
                _Note = value;
			} 
		}
		/// <summary>
        /// Column: CF_tblGoldAge.GoldAgeID
        /// </summary>
		public CF_tblGoldAge CF_tblGoldAge { get;set; }

		/// <summary>
        /// Column: IV_tblItemLists.ItemID
        /// </summary>
		public IV_tblItemLists IV_tblItemLists { get;set; }

		/// <summary>
        /// Column: SR_tblSalesOrders.SONo
        /// </summary>
		public SR_tblSalesOrders SR_tblSalesOrders { get;set; }

		/// <summary>
        /// Column: SR_tblDeliveryLines.RecLineID
        /// </summary>
		public ICollection<SR_tblDeliveryLines> SR_tblDeliveryLines { get;set; }


        #endregion
	}
}
